import cv2

image=cv2.imread('puppy.jpg',1)
cv2.imshow('showimg',image)
cv2.imwrite('puppy.jpg',image)
cv2.waitKey()
cv2.destroyAllWindows()